package com.cloud.cloudBatis.config;

import java.util.HashMap;
import java.util.Map;


public class Configuration {
    private JdbcProperties jdbcProperties;
    private Map<String, MapperStatement> mapperMap = new HashMap<String, MapperStatement>();

    public JdbcProperties getJdbcProperties() {
        return jdbcProperties;
    }

    public void setJdbcProperties(JdbcProperties jdbcProperties) {
        this.jdbcProperties = jdbcProperties;
    }

    public Map<String, MapperStatement> getMapperMap() {
        return mapperMap;
    }

    public void setMapperMap(Map<String, MapperStatement> mapperStatement) {
        this.mapperMap = mapperMap;
    }

    public void addMapperStatement(MapperStatement mapperStatement){
        if (mapperStatement != null) {
            mapperMap.put(mapperStatement.getId(), mapperStatement);
        }
    }
}
